package net.sea.setup.enums;

import java.io.File;

import net.sea.commons.constants.AppConstants;

/**
 * 安装目录的枚举类型，各安装目录要按照安装的先后顺序进行添加
 * 
 * @author 华成伍
 *
 */
public enum InstallDir {
	PublicDir(AppConstants.SYSTEM_PATH + File.separator + "resource" + File.separator + "public", "公共目录"), 
	CompDir(AppConstants.SYSTEM_PATH + File.separator + "resource" + File.separator + "comp", "组件目录"), 
	ScriptDir(AppConstants.SYSTEM_PATH + File.separator + "resource" + File.separator + "script", "脚本目录"),
	OtherDir(AppConstants.SYSTEM_PATH + File.separator + "resource" + File.separator + "other", "脚本目录"),
	UninstallDir(AppConstants.SYSTEM_PATH + File.separator + "uninstall", "卸载目录");
	private String dir;
	private String desc;

	private InstallDir(String dir, String desc) {
		this.dir = dir;
		this.desc = desc;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getDir() {
		return dir;
	}

	public void setDir(String dir) {
		this.dir = dir;
	}
}
